package cn.zn.job.entity;

import cn.zn.base.bean.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 *
 * </p>
 *
 * @author zn-admin
 * @since 2021-01-29
 */
@TableName("SYS_JOB")
public class SysJob extends BaseEntity<SysJob> {

    /**
     * 任务名
     */
    @TableField("JOB_NAME")
    private String jobName;

    /**
     * 组
     */
    @TableField("JOB_GROUP")
    private String jobGroup;

    /**
     * 执行类
     */
    @TableField("INVOKE_TARGET")
    private String invokeTarget;

    /**
     * 执行时间
     */
    @TableField("CRON_EXPRESSION")
    private String cronExpression;

    /**
     * 计划执行错误策略
     */
    @TableField("MISFIRE_POLICY")
    private String misfirePolicy;

    /**
     * 是否并发执行
     */
    @TableField("CONCURRENT")
    private String concurrent;

    /**
     * 状态（0正常 1暂停）
     */
    @TableField("STATUS")
    private String status;

    @TableField("REMARK")
    private String remark;

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getInvokeTarget() {
        return invokeTarget;
    }

    public void setInvokeTarget(String invokeTarget) {
        this.invokeTarget = invokeTarget;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getMisfirePolicy() {
        return misfirePolicy;
    }

    public void setMisfirePolicy(String misfirePolicy) {
        this.misfirePolicy = misfirePolicy;
    }

    public String getConcurrent() {
        return concurrent;
    }

    public void setConcurrent(String concurrent) {
        this.concurrent = concurrent;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "SysJob{" +
                "jobName=" + jobName +
                ", jobGroup=" + jobGroup +
                ", invokeTarget=" + invokeTarget +
                ", cronExpression=" + cronExpression +
                ", misfirePolicy=" + misfirePolicy +
                ", concurrent=" + concurrent +
                ", status=" + status +
                ", remark=" + remark +
                "}";
    }
}
